<!DOCTYPE html>
<html lang="en" ng-app="myapp">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>会员注册—汉东服饰企业制服定制</title>
    <link rel="stylesheet" href="./css/reset.css">
    <script src="./js/flexible.js"></script>
    <link rel="stylesheet" href="./components/font-awesome/css/font-awesome.css" />
    <link rel="stylesheet" href="./css/register.css">
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body ng-controller="register.ctrl">
<header>
    <a href="index.html" class="fa fa-angle-left"></a>
    <span>会员注册</span>
</header>

<main>
   <form ng-submit="doRegister()">
       <div class="container">
           <div class="row">
               <label>账号</label>
               <input type="text" name="account" placeholder="请输入账号（必填）" ng-model="username"
                      required>
           </div>
           <div class="row">
               <label>密码</label>
               <input type="password" name="password" placeholder="请输入密码（必填）" ng-model="password" required>
           </div>
           <div class="row">
               <label>密码</label>
               <input type="password" name="repassword" placeholder="请输入确认密码（必填）" ng-model="repassword" required>
           </div>
           <div class="row">
               <label>姓名</label>
               <input type="text" name="account" placeholder="请输入姓名（必填）" ng-model="name" required>
           </div>
           <div class="row">
               <label>邮箱</label>
               <input type="email" name="account" placeholder="请输入邮箱（必填）" ng-model="email" required>
           </div>
           <div class="row">
               <label>电话</label>
               <input type="number" name="account" placeholder="请输入电话" ng-model="phone">
           </div>
           <div class="row">
               <label>留言</label>
               <input type="text" name="message"  placeholder="请输入留言" ng-model="message ">
           </div>
       </div>
       <div class="row ver">
           <input  name="veryCode" type="text" placeholder="请输入验证码" class="codeinput">
           <input type = "button" id="code">
           <i class="fa fa-check" ng-model="check"></i>
           <i class="fa fa-times" ng-model="times"></i>
       </div>
       <div class="check">
           <input type="checkbox" ng-change="CheckAgree()" ng-model="agreeDoc" ng-true-value="'Yes'" ng-false-value="'No'">
           <span>我已经阅读并同意<a href="./agreement.html">《会员注册协议》</a></span>
       </div>
       <div class="btn">
           <input type="submit" name="submit"  class="submit" value="注册" ng-disabled="codeCheck">
       </div>
   </form>
    <div class="register-info">
        <p class='fail' ng-if="err">用户名已存在!</p>
        <p class="success" ng-if="success">注册成功!</p>
    </div>
</main>
<script src="./components/jquery/dist/jquery.js"></script>
<script src="./components/angular/angular.js"></script>
<script src="./components/angular-ui-router/release/angular-ui-router.js"></script>
<script src="./js/checkCode.js"></script>
<script src="./js/register.js"></script>
</body>
</html>